﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ElectronicObserver.Data {
	
	/// <summary>
	/// 遠征データを保持します。
	/// </summary>
	public class MissionData : APIWrapper, IIdentifiable {

		/// <summary>
		/// 任務ID
		/// </summary>
		public int MissionID {
			get { return (int)RawData.api_id; }
		}

		/// <summary>
		/// 海域カテゴリID
		/// </summary>
		public int MapAreaID {
			get { return (int)RawData.api_maparea_id; }
		}

		/// <summary>
		/// 遠征名
		/// </summary>
		public string Name {
			get { return RawData.api_name; }
		}

		/// <summary>
		/// 説明文
		/// </summary>
		public string Detail {
			get { return RawData.api_details; }
		}

		/// <summary>
		/// 遠征時間(分単位)
		/// </summary>
		public int Time {
			get { return (int)RawData.api_time; }
		}

		/// <summary>
		/// 難易度
		/// </summary>
		public int Difficulty {
			get { return (int)RawData.api_difficulty; }
		}

		/// <summary>
		/// 消費燃料割合
		/// </summary>
		public double Fuel {
			get { return RawData.api_use_fuel; }
		}

		/// <summary>
		/// 消費弾薬割合
		/// </summary>
		public double Ammo {
			get { return RawData.api_use_bull; }
		}

		//win_item<n>

		/// <summary>
		/// 遠征中断・強制帰投可能かどうか
		/// </summary>
		public bool Cancelable {
			get { return (int)RawData.api_return_flag != 0; }
		}



		public int ID {
			get { return MissionID; }
		}

	}
}
